package com.mcxx.modules.base.entity;

import io.swagger.models.auth.In;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
public class MqMessageEntity implements Serializable {
    private String id;
    private String messageId;
    private String msgType;
    private Date sendTime;
    private Integer status;
    private String exchange;
    private String routeKey;
    private Date recvTime;
    private String remark;
    private String errInfo;
    private String content;
    private String md5Flag;

    @Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        MqMessageEntity that = (MqMessageEntity) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }

    @Override
    public String toString() {
        return "MqMessageEntity{" +
                ",messageId='" + id + "'" +
                ",msgType='" + msgType + "'" +
                ",sendTime='" + sendTime + "'" +
                ",status='" + status + "'" +
                ",recvTime='" + recvTime + "'" +
                ",remark='" + remark + "'" +
                ",content='" + content + "'" +
                '}';
    }
}
